@echo off
SET DIR=%~dp0
SET PYTHON_ENV_PATH=%DIR%..\venv

SET PYTHON_EXEC=%PYTHON_ENV_PATH%\Scripts\pythonw.exe

echo DIR: %DIR%
echo Using Python: %PYTHON_EXEC%
echo Python Version: %PYTHON_EXEC% --version

SET PORT=8000

call kill_port.bat %PORT%

%PYTHON_EXEC% -m pup_core --host 0.0.0.0 --port %PORT% --reload --log-level info
